import request from "@/api/request.js";
import {useStore} from "@/stores/store.js";
import {ElMessage} from "element-plus";

// 获取其他账号的页面所需数据
export function getPageInfoByAccount(account, mineAccount) {
    return request({
        url: `/user/info/page/${account}/${mineAccount}`,
        method: 'get'
    })
}

// 关注或进行取消关注
export function followOrUnFollowTheUser(data) {
    // 这个doFollow为true就是关注，false就是取消关注
    return request({
        url: `/user/fans/follow`,
        method: 'post',
        data: data
    })
}
